/**
 *  This file is part of AugeasWH.
 *
 *  AugeasWH. is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AugeasWH. is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with AugeasWH.  If not, see <http://www.gnu.org/licenses/>.
 */

package cz.fit.vutbr.pis2012.augeaswh.persistence;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the contacts_subjects database table.
 * 
 */
@Entity
@Table(name="contacts_subjects")
public class ContactsSubject implements Serializable, AugeasWHEntity {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private ContactsSubjectPK id;

	//bi-directional many-to-one association to ContactInformation
    @ManyToOne
	@JoinColumn(name="contact_id", insertable = false, updatable = false, unique = false, nullable = false)
	private ContactInformation contactInformation;

    public ContactsSubject() {
    }

	public ContactsSubjectPK getId() {
		return this.id;
	}

	public void setId(ContactsSubjectPK id) {
		this.id = id;
	}
	
	public ContactInformation getContactInformation() {
		return this.contactInformation;
	}

	public void setContactInformation(ContactInformation contactInformation) {
		this.contactInformation = contactInformation;
	}
	
}